//
//  ViewController.swift
//  LXD_Extension
//
//  Created by 林兴栋 on 2021/4/13.
//

import UIKit
import Lottie

class ViewController: UIViewController {

    let starAnimationView = AnimationView(name: "全职新")
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        view.addSubview(starAnimationView)
        starAnimationView.frame = CGRect(x: 50, y: 100, width: 200, height: 200)
        view.addGestureRecognizer(UITapGestureRecognizer(target: self, action: #selector(starAction)))
        
    }
    
    @objc func starAction()  {
        starAnimationView.play { (isOK) in
            
        }
    }


}

